from selenium.webdriver.common.by import By

from base import Base
class Page(Base):
    def ss(self):
        loc=(By.XPATH,'//android.widget.ViewSwitcher[@resource-id="com.achievo.vipshop:id/index_search_custom_hint"]/android.widget.RelativeLayout')
        ele=self.find_ele(loc)
        return ele
    def ss1(self):
        loc=(By.CLASS_NAME,'android.widget.EditText')
        ele=self.find_ele(loc)
        return ele
    def sa(self):
        loc=(By.XPATH,'//android.widget.TextView[@resource-id="com.achievo.vipshop:id/tv_search"]')
        ele=self.find_ele(loc)
        return ele
    def nanxie(self):
        loc=(By.ANDROID_UIAUTOMATOR,'new UiSelector().className("android.view.View").instance(12)')
        ele=self.find_ele(loc)
        return ele
    def sp(self):
        loc=(By.XPATH,'(//android.widget.RelativeLayout[@resource-id="com.achievo.vipshop:id/bottom_icon_layout"])[1]')
        ele=self.find_ele(loc)
        return ele
    def mai(self):
        loc=(By.ID,'com.achievo.vipshop:id/sku_layout_right_price_ui_layout')
        ele=self.find_ele(loc)
        return ele
    def fan(self):
        loc=(By.RESOURCE_ID,'com.achievo.vipshop:id/btn_round_back_icon')
        ele=self.find_ele(loc)
        return ele
    def sj(self):
        loc=(By.XPATH,'//android.widget.TextView[@resource-id="com.achievo.vipshop:id/online_service_title"]')
        ele=self.find_ele(loc)
        return ele
